import type { ResponseData } from './request';

export interface UserSystemsInterface {
  id: string;
  layout: string;
  partitionType: string;
  sortNo: string;
  sysFrame: string;
  sysIdentifier: string;
  sysImg: string;
  sysName: string;
  sysParam: string;
  sysPath: string;
  sysType: string;
}

//
export const userSystemsApi = (): Promise<
  ResponseData<UserSystemsInterface[]>
> =>
  request<ResponseData<UserSystemsInterface[]>, null>(
    '/apm-bff-server/apm/userSystems',
    'get',
  );
